package com.embhealth.service;

import com.embhealth.entity.PageResult;
import com.embhealth.entity.QueryPageBean;
import com.embhealth.entity.Result;
import com.embhealth.pojo.Role;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

public interface RoleService {
    public List<Map<String,Object>> findAllRoleName();
    public PageResult findPage(QueryPageBean queryPageBean);
    public void addRole(Role role, Integer[] permissions, Integer[] urls);
    public Role findById(Integer id);
    public Integer[] findPermissionsByRoleId(Integer id);
    public Integer[] findUrlsByRoleId(Integer id);
    public void edit(Integer[] urls,Integer[] permissions,Role role);
    public void delete(Integer id);
}
